﻿
@{
    ViewBag.title = "学生管理";
}

<div class="wrapper animated fadeInRight autoHeight" style="padding:0px 15px;">
    <div class="row">
        <div class="col-sm-12" style="padding-left:10px;padding-right:10px;">
            <div class="ibox-content content" style="padding: 0px">
                <div id="tableTool">
                    <form id="searchForm" class="form-inline">
                        <input type="hidden" id="page" name="page" />
                        <input type="hidden" id="rows" name="rows" />
                        <div class="form-group">
                            <button id="add" class="btn btn-primary btn-sm" type="button">
                                <span class="glyphicon glyphicon-plus"></span>
                                新增
                            </button>
                        </div>
                        <div class="form-group">
                            <button id="import" class="btn btn-primary btn-sm" type="button">
                                <span class="glyphicon glyphicon-arrow-up"></span>
                                导入
                            </button>
                        </div>
                        <div class="form-group">
                            <label class="control-label">所属学校</label>
                            <select id="schoolName" name="schoolName" class="form-control input-sm"
                                   style="padding-bottom:4px;padding-top:4px;">
                                <option></option>
                                @for (var i = 0; i < ViewBag.units.Count; i++)
                                {
                                    <option value="@ViewBag.units[i].text">@ViewBag.units[i].text</option>
                                }
                            </select>
                        </div>
                        <div class="form-group">
                            <label class="control-label">所属班级</label>
                            <select id="classId" name="classId" class="form-control input-sm" title="选择所属学校后加载班级"
                                    style="padding-bottom:4px;padding-top:4px;">
                                <option></option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label class="control-label">班主任</label>
                            <input name="teacherName" type="text" placeholder="请输入班主任"
                                   autocomplete="off" class="form-control input-sm" />
                        </div>
                        <div class="form-group">
                            <label class="control-label">学生</label>
                            <input name="studentName" type="text" placeholder="请输入学生姓名"
                                   autocomplete="off" class="form-control input-sm" />
                        </div>

                        <button id="search" class="btn btn-primary btn-sm" type="button">
                            <span class="glyphicon glyphicon-search"></span>
                            查询
                        </button>
                        <button id="resetForm" class="btn btn-primary btn-sm" type="button">
                            <span class="glyphicon glyphicon-repeat"></span>
                            重置
                        </button>
                    </form>
                </div>
                <table id="listTable" data-mobile-responsive="true" data-radio="true"></table>
            </div>
        </div>
    </div>
</div>


<div id="uploadExcelContent" style="display:none;width:400px;padding-top:20px;">
    <form id="fileForm" class="form-horizontal" enctype="multipart/form-data">
        <input type="hidden" id="imp_schoolName" name="schoolName" />
        <input type="hidden" id="imp_classId" name="classId" />

        <div class="form-group">
            <label class="col-sm-3 control-label">导入文件</label>
            <div class="col-sm-9">
                <input type="file" id="excelFile" name="excelFile" accept=".xlsx" fileId="BusinessLicenseImg" attribute="src" class="form-control input-sm files"
                       placeholder="请选择导入文件上传" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-10 col-sm-offset-2">
                <button id="uploadExcel" class="btn btn-primary btn-sm" type="button">
                    <span class="glyphicon glyphicon-upload"></span>
                    导入学生
                </button>
                <a class="btn btn-primary btn-sm" href="~/Resources/excel/学生导入模板.xlsx">
                    <span class="glyphicon glyphicon-download"></span>
                    下载excel模板
                </a>
            </div>
        </div>
    </form>
</div>
<div id="importInfo" style="display:none; width:650px;height:90%;">
</div>
@section footSection{
<script src="~/Resources/mainFrame/js/plugins/prettyfile/bootstrap-prettyfile.js"></script>
<script src="~/Resources/tools/BootstrapTableDefault.js"></script>   
<script src="~/Resources/tools/jqueryExtend.js"></script>
<script src="~/Resources/tools/custom.js"></script>
<script src="~/Resources/myScript/VR/Student-index.js"></script>
}
